// 导入axios 
import Axios from "axios"

// 封装get请求方式
export let get = (url,data) => {
    return Axios.get(url,{params: data}).then(response=> { return response.data });
}

// 封装post请求方式
export let post = (url,data) => {
    return Axios.post(url, data).then(response=> { return response.data });
}
